package cs.game.util;

import java.awt.image.BufferedImage;

public abstract class Flyer {
	public Integer Weidth;
	public Integer Height;
	public Integer x;
	public Integer y;
	public Integer speed;
	public BufferedImage image;
	
	public abstract void stepMove();
	public abstract boolean OutOfBounds();
	public boolean beShoot(Flyer flyer){
		boolean result = false;
		if(this.y<flyer.y+flyer.Height&&this.y>flyer.y-this.Height&&this.x>flyer.x-this.Weidth&&this.x<flyer.x+flyer.Weidth){
			result = true;
		}
		return result;
	}

}
